package com.frcdi.qms.equipment.domain;

import com.frcdi.qms.common.annotation.Excel;
import com.frcdi.qms.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备通讯配置对象 md_equipment_communication
 *
 * @author cell
 * @date 2023-12-26
 */
@ApiModel(value = "设备通讯配置对象")
public class EquipmentCommunication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 设备 */
    @Excel(name = "设备")
    private Long equipment;

    /** 串口 */
    @Excel(name = "串口")
    private String com;

    /** 波特率 */
    @Excel(name = "波特率")
    private Integer baudRate;

    /** 数据位 */
    @Excel(name = "数据位")
    private Integer dataBits;

    /** 检验位 */
    @Excel(name = "检验位")
    private String parity;

    /** 停止位 */
    @Excel(name = "停止位")
    private Integer stopBits;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setEquipment(Long equipment)
    {
        this.equipment = equipment;
    }

    public Long getEquipment()
    {
        return equipment;
    }
    public void setCom(String com)
    {
        this.com = com;
    }

    public String getCom()
    {
        return com;
    }
    public void setBaudRate(Integer baudRate)
    {
        this.baudRate = baudRate;
    }

    public Integer getBaudRate()
    {
        return baudRate;
    }
    public void setDataBits(Integer dataBits)
    {
        this.dataBits = dataBits;
    }

    public Integer getDataBits()
    {
        return dataBits;
    }

    public String getParity() {
        return parity;
    }

    public void setParity(String parity) {
        this.parity = parity;
    }

    public void setStopBits(Integer stopBits)
    {
        this.stopBits = stopBits;
    }

    public Integer getStopBits()
    {
        return stopBits;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipment", getEquipment())
            .append("com", getCom())
            .append("baudRate", getBaudRate())
            .append("dataBits", getDataBits())
            .append("parity", getParity())
            .append("stopBits", getStopBits())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
